package com.zzhou.linkinfo.clock.selector;

import android.content.Context;
import android.content.Intent;

import com.zzhou.linkinfo.clock.activity.ClockMainActivity;
import com.zzhou.linkinfo.clock.activity.ClockTaskDetailActivity;

/**
 * <desc>
 * Created by The Moss on 2019/3/12.
 */

public class ActionSelector {
    //跳转到任务列表页
    public static void launchClockMainActivity(Context context){
        Intent intent = new Intent(context, ClockMainActivity.class);
        context.startActivity(intent);
    }
    //跳转到任务详情页
    public static void launchClockTaskDetailActivity(Context context,long taskId){
        Intent intent = new Intent(context, ClockTaskDetailActivity.class);
        intent.putExtra(ClockTaskDetailActivity.KEY_TASKID,taskId);
        context.startActivity(intent);
    }
}
